# -*-coding:utf-8 -*-
# File  : boolCalculation_api.py
# Time  ：2021/11/24 10:20
# Author：author name

from api.manage.manage_base import ManageBase


class BoolCalculationApi(ManageBase):
    def __init__(self, operator_id, calculation_id, lottery_type):
        """
        运营商分润启用接口
        :param operator_id:
        :param calculation_id:
        :param lottery_type:
        """
        super().__init__()
        self.url = self.host + f"cloudlottery-manage/operator/boolCalculation?id={operator_id}&boolCalculation={calculation_id}&lotterytype={lottery_type}"
        self.method = "put"
